﻿<UserControl x:Class="MacroprocesosWPF.Administrador.Administrador.ControUsuario.TipoDocumento"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="425.4" d:DesignWidth="395" Loaded="UserControl_Loaded_1">
    <Grid>
        <TextBlock Text="Tipo de Documento" HorizontalAlignment="Left" Margin="10,10,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="137" FontSize="24" FontWeight="Thin" Height="64"/>
        <GroupBox x:Name="gbTipoDocumentoRegistrado" Header="Documentos registrados" HorizontalAlignment="Left" Margin="31,205,0,0" VerticalAlignment="Top" Height="210" Width="344" FontSize="14" FontWeight="Thin">
            <Grid>
                <Button x:Name="btnEliminarTipoDocumento" Content="Eliminar" HorizontalAlignment="Left" Margin="257,0,0,0" VerticalAlignment="Top" Width="65" FontWeight="Thin" FontSize="12"/>
                <DataGrid x:Name="dataGridTipoDocumento" ItemsSource="{Binding Path=ListaTipoDocumento}" HorizontalAlignment="Left" Height="147" VerticalAlignment="Top" Width="312" Margin="10,27,0,0" CanUserResizeRows="False" IsReadOnly="True" AutoGenerateColumns="False">
                    <DataGrid.Columns>
                        <DataGridTextColumn Header="Código" Binding="{Binding Path=Codigo}" />
                        <DataGridTextColumn Header="Tipo de documento" Binding="{Binding Path=NombreDocumento}" Width="*" />
                    </DataGrid.Columns>
                </DataGrid>
            </Grid>
        </GroupBox>
        <Button x:Name="btnAgregarTipoDocumento" Content="Agregar" HorizontalAlignment="Left" Margin="283,180,0,0" VerticalAlignment="Top" Width="65" FontWeight="Thin" Click="btnAgregarTipoDocumento_Click"/>
        <Button x:Name="btnModificar" Content="Modificar" HorizontalAlignment="Left" Margin="210,180,0,0" VerticalAlignment="Top" Width="65" FontWeight="Thin" Click="btnModificar_Click"/>
        <Grid x:Name="gridTipoDocumento" DataContext="{Binding ElementName=dataGridTipoDocumento, Path=SelectedItem}" HorizontalAlignment="Left" Height="81" Margin="31,92,0,0" VerticalAlignment="Top" Width="328">
            <Label Content="Documento" HorizontalAlignment="Left" Margin="10,42,0,0" VerticalAlignment="Top" FontWeight="Thin" FontSize="14"/>
            <TextBox x:Name="txtDocumento" HorizontalAlignment="Left" Height="23" Margin="94,48,0,0" TextWrapping="NoWrap" VerticalAlignment="Top" Width="224" MaxLength="70" Text="{Binding NombreDocumento}"/>
            <Label Content="Código" HorizontalAlignment="Left" Margin="36,8,0,0" VerticalAlignment="Top" FontWeight="Thin" FontSize="14"/>
            <TextBox x:Name="txtCodigo" HorizontalAlignment="Left" Height="23" CharacterCasing="Upper" Margin="94,14,0,0" TextWrapping="NoWrap" VerticalAlignment="Top" Width="52" Text="{Binding Codigo}" MaxLength="5"/>
        </Grid>
    </Grid>
</UserControl>
